﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="BMICalculator.aspx.vb" Inherits="BMI.BMICalculator" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    Enter your Weight here:
    <asp:TextBox ID="tb_Weight" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="rf_weight" runat="server" ControlToValidate="tb_Weight" 
        ErrorMessage=" only numbers between 30 and 200" MaximumValue="200" 
        MinimumValue="30" Type="Integer"></asp:RangeValidator>
    <br />
    <br />
    Enter your Height here:&nbsp;
    <asp:TextBox ID="tb_height" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="rv_Height" runat="server" ControlToValidate="tb_height" 
        ErrorMessage="only numbers between 1 and 3" MaximumValue="3" MinimumValue="1" 
        Type="Double"></asp:RangeValidator>
    <br />
    <br />
    <asp:Button ID="btn_calculate" runat="server" Text="Calculate BMI" />
&nbsp;
    <br />
    <br />
    <asp:Label ID="lbl_result" runat="server"></asp:Label>
&nbsp;
</asp:Content>
